package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    Page<NursingPlanVo> selectPlanByPage(String name, Integer status);

    NursingPlanVo getByName(String planName);
    NursingPlanVo getByName1(String planName, Long id);

    List<NursingPlanVo> getAll();

    NursingPlan getById(Long id);

    void removeById(Long id);
    void removepj(Long id);

    int updateStatus(Long id, Integer status);



//   NursingPlanVo selectmsg(Long id);
//
//    List<NursingProjectAndPlan> selectmsg2(Long id);







    void updatePlanById( NursingPlan nursingPlan );



    void addPlan(NursingPlan nursingPlan);

//    void addpj(List<NursingProjectAndPlanDto> projectPlans);

    NursingPlanVo getPlanById(Long id);


}
